<?php
?>
<?php include '../../common/view/headermodel.html.php';?>
<?php
css::import($jsRoot . 'jquery/chosen/chosen.min.css');
js::import($jsRoot . 'jquery/chosen/chosen.min.js');
?>
<style>
  .table-form > tbody > tr > th, .table-form > tbody > tr > td {
    padding: 5px;
  }
  .table-form{border: 1px solid #ccc;}
  .xiang{border-top: none;min-height: 100px;}
  .table-form > tbody > tr > td {
    padding: 5px;
    line-height: 34px;
  }
  .chuli{padding-left: 30px;}
  a{color: inherit;}
  li{list-style-type: none;}
  .table-form > tbody > tr > td {
    max-width: 280px;
  }
  table tr{border-bottom: 1px solid #ccc;}
  table tr td{border-right:1px solid #ccc; }

</style>
  <table class='table-form w-p100'>
    <tr>
      <td>时间：</td><td><?php echo $process->eventtime;?></td>
      <td>地点：</td><td><?php echo $process->address;?></td>
    </tr>
    <tr>
      <td>当事人：</td><td><?php echo $process->personnel;?></td>
      <td>当事人单位：</td><td><?php echo $process->department_name;?></td>
    </tr>
    <tr>
      <td>违规类型：</td><td><?php echo $process->category;?></td>
      <td></td><td></td>
    </tr>
    <tr>
      <td>具体情况：</td><td><?php echo $process->m_content;?></td>
      <td></td><td></td>
    </tr>
    <tr>
      <td>附件：</td><td> <?php foreach($files as $file) :?>
            <?php
            if($file->pathname&&!$file->title){
              $file->title = '附件';
            }
          ?>
     <?php echo html::a($webRoot.'www/data/upload/'.$file->pathname,$file->title,"target='_blank'");?>
    <?php endforeach ?>
      </td>
      <td></td><td></td>
    </tr>
  </table>
<table class='table-form w-p100 xiang'>
  <tr>
    <td>当事人领导意见：</td>
    <td colspan="3">
      <?php if($process->headcontent) :?>
      <?php echo $process->headcontent;?>【<?php echo $process->department_heads;?>】【<?php echo $process->confirmedtime;?>】
      <?php endif ?>
    </td>
  </tr>
  <tr>
    <td>当事人情况说明：</td>
    <td colspan="3">
      <?php if($process->p_content) :?>
      <?php echo $process->p_content;?>【<?php echo $process->persontime;?>】
      <?php endif ?>
    </td>
  </tr>

  <tr>
    <td>当事人材料</td>
    <td colspan="3">
      <?php foreach($afiles as $file) :?>
        <?php
        if($file->pathname&&!$file->title){
          $file->title = '当事人材料';
        }
        ?>
        <?php echo html::a($webRoot.'www/data/upload/'.$file->pathname,$file->title,"target='_blank'");?>
      <?php endforeach ?>
    </td>
  </tr>
  <tr>
    <td>审核领导意见：</td>
    <td colspan="3">
      <?php if($process->approval_content) :?>
        <?php echo $process->approval_content;?>
        【<?php echo $process->supervision_approver;?>】
        【<?php echo $process->approval_time;?>】
      <?php endif ?>
    </td>
  </tr>
</table>
<table class='table-form w-p100 xiang'>
  <tr>
    <td colspan="2">处理情况：<p class="chuli">
        <?php if($process->istrue=='yes'&&$process->approval_status = 'final') :?>
      <li>
            <?php for($i=0;$i<count($process->categoryname);$i++) :?>
       <span><?php echo $process->personnel.$process->categoryname[$i].'，';?></span>
            <?php endfor ?>
      <?php echo '依例扣'.$process->score.'分。';?>
        <?php echo '['.$process->scoretypename.']';?>
      </li>
      <?php if($liandai) :?>
      <li>连带责任</li>
    <?php foreach($liandai as $val) :?>
          <li>
      <?php for($k=0;$k<count($val->categoryname);$k++) :?>
           <span> <?php echo $val->user.$val->categoryname[$k].'，';?></span>
              <?php endfor ?>
         <span><?php echo '依例扣'.$val->score.'分。';?></span>
            <?php echo '['.$val->scoretypename.']';?>

          </li>
        <?php endforeach ?>
      <?php endif ?>
      <?php endif ?>
      <?php if($process->istrue=='no'&&$process->approval_status = 'final') :?>
      <li>不属实</li>
      <?php endif ?>
      </p>
    </td>
  </tr>

</table>
<?php include '../../common/view/footermodel.html.php';?>
